<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('words',function(Blueprint $table){
          $table->string('word')->index();
          $table->string('pron')->nullable();
          $table->text('interpret')->nullable();
          $table->text('tips')->nullable();
          $table->text('interpretmore')->nullable();
          $table->text('sentences')->nullable();
          $table->text('sentenceplus')->nullable();
          $table->text('freqency')->nullable();
          $table->timestamp('created_at')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::dropIfExists('words');
    }
}
